package com.example.zhu.service;

import com.example.zhu.dto.OrderDTO;
import com.example.zhu.entity.Orders;
import com.example.zhu.result.Result;
import com.example.zhu.vo.*;
import org.springframework.web.multipart.MultipartFile;


import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface OrderService {
    List<OrderVO> getAll();

    OrderVO getEditInfo(Integer id);

    void updateEditInfo(OrderDTO orderDTO);

    List<OrderVO> selectByNumber(String number, String phone, String outPhone);

    OrderMaxVO getAllInfo(Integer id);

    HistoryOrderVO selectAll();

    AddressVO selectAllOrders(String path);

    Result take(Integer id, Integer received);

    Result arrive(Integer id, Integer reached);

    List<OrderVOMax> selectByTime(Long start, Long end);

    void image(Integer id, MultipartFile image);

    void download(String url, HttpServletResponse response);

    Result fail(Integer id);

    List<Orders> selectOrders();

    Result update21(Integer id);

    Result update22(Integer id);

    Result update23(Integer id);

    Result updatef3(Integer id);

    Result updateCount(Integer id,Integer count);

    Result update6(Integer id);

    Result update2(Integer id);

    Result<List<ImageOverVO>> selectImgOvers();

    Result<List<ImageOverVO>> selectIOsByTime(Integer id);

    Result repulse(Integer id);

    Result updateErrorMsg(Integer id, String errorMsg);
}
